From: Keir Fraser Date: Thu, 25 Jun 2009 12:51:40 +0000 (+0100) Subject: x86 hvm: Make sure port 0x80 in hvm_io_table[] is set correctly X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13684 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=549d0cf28185555404dbb28b53df50c7e3b58139;p=xen.git x86 hvm: Make sure port 0x80 in hvm_io_table[] is set correctly regardless of execution order of hvm_enable() and check_port80(). Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/quirks.c b/xen/arch/x86/hvm/quirks.c index a49fa0d284..1e08a2beba 100644 --- a/xen/arch/x86/hvm/quirks.c +++ b/xen/arch/x86/hvm/quirks.c @@ -20,6 +20,8 @@ #include #include #include +#include +#include int hvm_port80_allowed = -1; boolean_param("hvm_port80", hvm_port80_allowed); @@ -88,6 +90,9 @@ static int __init check_port80(void) dmi_check_system(hvm_no_port80_dmi_table); + if ( !hvm_port80_allowed ) + __set_bit(0x80, hvm_io_bitmap); + return 0; } __initcall(check_port80);